# $Id$
# Maintainer: Richard Leys <leys.richard@gmail.com>
# Based on Arch's PKGBUILD

_realname=tcl-nsf
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.1.0
pkgrel=1
pkgdesc="Next Scripting Language (mingw-w64)"
arch=('any')
url="https://next-scripting.org"
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-tcl")
source=("https://downloads.sourceforge.net/project/next-scripting/${pkgver}/nsf${pkgver}.tar.gz")
sha256sums=('be4d7ed30bc366ca9c264626d55d5dd029eec6bf51d2a8a5e26803d64684b020')

build() {
  
  cd $srcdir/nsf${pkgver}
  [[ "${MINGW_CHOST}" = 'x86_64-w64-mingw32' ]] && enable64bit='--enable-64bit'

  ./configure --prefix=${MINGW_PREFIX} $enable64bit
  make

}
package() {

  cd $srcdir/nsf${pkgver}
  make DESTDIR="${pkgdir}" install

}
